package com.tangguo.vshop.repository;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.tangguo.vshop.domain.Shoppingcart;

public interface ShoppingCartRepository extends MongoRepository<Shoppingcart, String> {

	List<Shoppingcart> findByCreator(String creatorId);

	Shoppingcart findByCreatorAndCustomer(String creatorId, String customerId);

}
